const mongoose = require("./db");

const VideoListSchema = new mongoose.Schema({
    
    // 发布视频位置
    // 视频评论
    video_text: String, // 视频文案
    video_url: String, // 视频地址
    liked: {
        type: Number, // 点赞数
        default: 0 
    },
    shoucang: {
        type: Number, // 收藏数
        default: 0,
    }, 
    share: {
        type: Number, // 分享数
        default: 0
    },
    tid: {
        type: mongoose.Types.ObjectId,
        ref: 'user' // 视频用户
    }
})
const VideoListModel = mongoose.model('VideoList',VideoListSchema,'VideoList')

module.exports = {
    VideoListModel
  };
